package com.jiugang.cardump.controller;


import com.jiugang.cardump.result.ResultInfoV110;
import com.jiugang.cardump.service.ProEquRefService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author author
 * @since 2021-08-19
 */
@RestController
@RequestMapping("/pro_equ_ref")
@Slf4j
public class ProEquRefController {

    @Autowired
    ProEquRefService proEquRefService;
    /**
     * @Author luoxin
     * @Description 根据项目id查询设备信息
     * @Date 3:30 下午 2021/8/20
     * @param proId
     * @return
     */
    @GetMapping("/list/{id}")
    public ResultInfoV110 selectEquList (@PathVariable("id") Integer proId){
        log.debug("MonitorController的update方法进入，参数为" +proId);


        return proEquRefService.selectEqu(proId);
    }
}

